package ai.people.netmon.framework.exception.enums;

/**
 * * 22???? -- 主题相关异常
 * <p>
 * 主题异常枚举
 *
 * @author yuanqinglong
 * @date 2022/2/15 17:16
 */
public enum TopicExceptionEnum implements ExceptionEnum {

    TOPIC_NOT_EXISTS(false, 220000, "主题不存在"),
    TOPIC_NAME_ALREADY_EXISTS(false, 220001, "主题名称已存在"),
    FAILED_TO_JOIN_ANALYSIS(false, 220002, "加入主题分析失败");


    /**
     * 状态
     */
    final boolean status;
    /**
     * 代码
     */
    final int code;
    /**
     * 消息
     */
    final String message;

    TopicExceptionEnum(boolean status, int code, String message) {
        this.status = status;
        this.code = code;
        this.message = message;
    }

    @Override
    public Integer getCode() {
        return this.code;
    }

    @Override
    public String getMessage() {
        return this.message;
    }

    @Override
    public boolean getStatus() {
        return status;
    }
}
